<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>审查专家--审查--详情</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
    <!--<script type="text/javascript" src="/templates/act/process-xl.js"></script>-->
    <style>
        .content {
            position: relative;
        }

        .btnBox {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1000;
        }
    </style>
</head>
<body>
<div class="content" id="view">

</div>
<script src="/static/js/main.js"></script>
<script type="text/javascript">
    layui.use(['configureCom', 'configure', 'bluebird', 'baseTab', 'sessionFun', 'jquery', 'process'], function () {
        var configure = layui.configure;
        var configureCom = layui.configureCom;
        var baseTab = layui.baseTab;
        var sessionFun = layui.sessionFun;
        var process = layui.process;
        var $ = layui.jquery;
        var listData = sessionFun.get(configure.SESSION_PROJECT_WAIT_LIST_DATA);
        var kcsj = listData.ext0;
        if(kcsj == "kcst"){
            var tabData = {
                btns: [
                    {name: '施工图勘察审查', event: 'examination'},
                    {name: '保存并提交', event: 'submit'},
                    {name: '关闭', event: 'close'}
                ],
                tabList: [
                    {
                        title: '项目管理',
                        url: configure.PRJ_DETAIL_ALL_READ_HTML
                    }, {
                        title: '项目文件',
                        url: configure.PRJ_FILE_READ_HTML
                    }, {
                        title: '勘察报告信息',
                        url: configure.PRJ_KC_REPORT_LIST_READ_HTML
                    }, {
                        title: '设计报告信息',
                        url: configure.PRJ_SJ_REPORT_LIST_READ_HTML
                    }, {
                        title: '审查机构遴选',
                        url: configure.ORG_SELECTION_BODIES_READ_HTML
                    }, {
                        title: '审查信息',
                        url: configure.PRJ_EXPERT_DEVIDE_INFOR_READ_HTML
                    }
                ]
            };
        }
        if(kcsj == "sjst"){
            var tabData = {
                btns: [
                    {name: '施工图设计审查', event: 'examination'},
                    {name: '保存并提交', event: 'submit'},
                    {name: '关闭', event: 'close'}
                ],
                tabList: [
                    {
                        title: '项目管理',
                        url: configure.PRJ_DETAIL_ALL_READ_HTML
                    }, {
                        title: '项目文件',
                        url: configure.PRJ_FILE_READ_HTML
                    }, {
                        title: '勘察报告信息',
                        url: configure.PRJ_KC_REPORT_LIST_READ_HTML
                    }, {
                        title: '设计报告信息',
                        url: configure.PRJ_SJ_REPORT_LIST_READ_HTML
                    }, {
                        title: '审查机构遴选',
                        url: configure.ORG_SELECTION_BODIES_READ_HTML
                    }, {
                        title: '审查信息',
                        url: configure.PRJ_EXPERT_DEVIDE_INFOR_READ_HTML
                    }
                ]
            };
        }
        baseTab.init(tabData, 0);
        form.on('submit', function (data) {
            var event = $(data.elem).attr('lay-event');
            switch (event) {
                case 'examination':
                    examination();
                    break;
                case 'submit':
                    submit();
                    break;
                case 'close':
                    top.layer.closeAll();
                    break;
            }
            return false;
        });

        //施工图审查
        function examination() {
            top.layer.open({
                type: 2,
                title:'施工图审查',
                area: configureCom.Psize100,
                content: configureCom.nocache(configure.CHECK_DRAWING_HTML)
            });
        }

        //保存并提交方法
        function submit() {
            process.next({
                "taskId": listData.taskId,
                "poId": listData.poId
            });
        }
    });


</script>
</body>
</html>